<?php
use Jialeo\LaravelSchemaExtend\Schema;
// use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAuthRolesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('auth_roles', function (Blueprint $table) {
            $table->comment = '角色表';
            $table->increments('id')->comment('角色ID');
            $table->char('name', 100)->default('')->comment('角色名称');
            $table->char('label', 100)->default('')->comment('标识');
            $table->char('remark', 255)->default('')->comment('备注');
            $table->unsignedTinyInteger('relevance')->comment('数据权限是否关联上下级')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('auth_roles');
    }
}
